import { createStore } from 'vuex'


const store = createStore({
  state: {
    Active: false
  },
  // 获取值
  getters: {
    getActive: (state) => {
      return state.Active
    }
  },
  // 赋值
  mutations: {
    setActive(state, Active) {
      state.Active = Active
    }
  }
});
export default store;